package com.fxp.project.jiuselu.web.business.v1.controller.userlog;

import java.util.List;

import com.fxp.project.jiuselu.web.base.controller.BaseController;
import com.fxp.project.jiuselu.web.domain.CommonResult;
import com.fxp.project.jiuselu.web.models.userlog.entity.UserLog;
import com.fxp.project.jiuselu.web.models.userlog.service.IUserLogService;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 用户日志Controller
 *
 * @author Jason.Wang
 * @date 2022-08-12
 */
@RestController
@RequestMapping("v1/user/log")
public class UserLogController extends BaseController
{
    @Autowired
    private IUserLogService userLogService;


    /**
     * 新增用户日志
     */
    @PostMapping
    @CrossOrigin
    public CommonResult add(@RequestBody UserLog userLog)
    {
        return CommonResult.success(userLogService.insertUserLog(userLog));
    }


}
